package com.example.teach.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName(value="comment")
public class Comment {
    @TableId(value="id", type = IdType.AUTO)
    private Integer id;
    private String content;
    private Integer articleId;
    private Integer userId;
    private Integer parentId;  // 父评论
    private LocalDateTime createTime;
}
